"""
Task 1 Make a program that has your name and the current day of the week stored as separate variables and then
prints a message like this "Good day <name>! <day> is a perfect day to learn some python."
"""
from datetime import datetime

name = str(input("Enter your name: "))
day = datetime.today().strftime('%A')
print(f"Good day {name}! {day} is a perfect day to learn some python.")

"""
Task 2
Save your first and last name as separate variables, then use string concatenation to add them together with a 
white space in between and print a greeting. 
"""
first_name = "Ivan"
last_name = "Samchuk"
print(first_name, last_name, sep=" ")
print(first_name + " " + last_name)
print(f"{first_name} {last_name}")
print("{1} {0}".format(last_name, first_name))

"""
Task 3
Make a program with 2 numbers saved in separate variables a and b, then print the result for each of the following:

    Addition
    Subtraction
    Division
    Multiplication
    Exponent (Power)
    Modulus
    Floor division

"""
a = float(input("Enter a: "))
b = float(input("Enter b: "))
print("Add ", a + b)
print("Sub ", a - b)
print("Div ", a / b)
print("Mul ", a * b)
print("Pow ", a ** b)
print("Mod", a % b)
print("Flo", a // b)

"""
Task 4*
Зробіть форматування так щоб отримати ось таке

"000012 Василий 110110 32.10"

"""

print("{0:06d} {1} {2:b} {3:.2f}".format(12, "Василий", 54, 32.1))

"""
Task 5*
Спробуйте "зібрати" зі слова "Корован" слово "ворона"

print(s1[4]+s1[1]+s1[2] +... <-  можливий але не самий цікавий варіант.
"""
s1 = "Корован"
print(s1[4:0:-1]+s1[6:4:-1])
